package myapp.drawable_items;

import myapp.DTO.ServiceDTO;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class smallItem {
	private ServiceDTO service;
	private float top;
	private float left;
	private Bitmap bmp;
	private String msg;
	private boolean touchable;
	
	public smallItem(ServiceDTO _serviceDTO, float iTop, float iLeft, String iMsg, Resources res, int bmpId, boolean _touchable)
	{
		service = _serviceDTO;
		top = iTop;
		left = iLeft;
		msg = iMsg;
		bmp = BitmapFactory.decodeResource(res, bmpId);
		touchable = _touchable;
	}
	
	public ServiceDTO getServiceDTO() {
		return service;
	}
	
	public float getTop(){
		return top;
	}
	
	public float getLeft(){
		return left;
	}
	
	public float getWidth(){
		return bmp.getWidth();
	}
	
	public float getHeight(){
		return bmp.getHeight();
	}
	
	public Bitmap getBitmap(){
		return bmp;
	}
	
	public String getMsg(){
		return msg;
	}
	
	public boolean getTouchable() {
		return touchable;		
	}
}
